package com.cn.xiaonuo.slbfinances.slborders.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cn.xiaonuo.slbfinances.slborders.entity.CommonOrder;
import com.cn.xiaonuo.slbfinances.slborders.entity.SlOrderRefund;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface CmOrderRefundMapper extends BaseMapper<SlOrderRefund> {
    ///*财务退款后台查询*/
    List<Map<String, Object>> selectFinanceRefund(CommonOrder commonOrder);

    /**
     * 退款申请
     * @param commonOrder
     * @return
     */
    List<Map<String, Object>> applyFinanceRefund(CommonOrder commonOrder);

    Integer updateFinanceState(@Param("id") Integer id, @Param("userId") String userId, @Param("localTime") String localTime,@Param("actmoney") String  actmoney);

    Integer updateOrderDetailShipState(@Param("orderId") Integer orderId,  @Param("localTime") String localTime);

    Integer updateOrderPaymentState(@Param("orderId") Integer orderId);

}

